package com.poly.police.monitor.common.uid;

import com.poly.police.monitor.common.uid.sequence.Sequence;

/**
 * 调用默认sequence 获取id
 */
public class Id {
	/**
	 * 获得一个id
	 * @return Long id
	 */
	public static Long getId() {
		Sequence sequence = SpringContextHolder.getBean("snowflakeSequence");
		return sequence.nextValue();
	}
}
